package com.company.project.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@TableName("sys_share")
public class Share extends Model<Share> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("share_unit")
    private String shareUnit;
    @TableField("share_code")
    private String shareCode;
    @TableField("share_standard")
    private String shareStandard;
    @TableField("share_number")
    private Double shareNumber;
    @TableField("share_size")
    private String shareSize;
    @TableField("share_persion")
    private String sharePersion;
    @TableField("share_persion_tel")
    private String sharePersionTel;
    @TableField("share_state")
    private Integer shareState;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getShareUnit() {
        return shareUnit;
    }

    public void setShareUnit(String shareUnit) {
        this.shareUnit = shareUnit;
    }

    public String getShareCode() {
        return shareCode;
    }

    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }

    public String getShareStandard() {
        return shareStandard;
    }

    public void setShareStandard(String shareStandard) {
        this.shareStandard = shareStandard;
    }

    public Double getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Double shareNumber) {
        this.shareNumber = shareNumber;
    }

    public String getShareSize() {
        return shareSize;
    }

    public void setShareSize(String shareSize) {
        this.shareSize = shareSize;
    }

    public String getSharePersion() {
        return sharePersion;
    }

    public void setSharePersion(String sharePersion) {
        this.sharePersion = sharePersion;
    }

    public String getSharePersionTel() {
        return sharePersionTel;
    }

    public void setSharePersionTel(String sharePersionTel) {
        this.sharePersionTel = sharePersionTel;
    }

    public Integer getShareState() {
        return shareState;
    }

    public void setShareState(Integer shareState) {
        this.shareState = shareState;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Share{" +
        "id=" + id +
        ", shareUnit=" + shareUnit +
        ", shareCode=" + shareCode +
        ", shareStandard=" + shareStandard +
        ", shareNumber=" + shareNumber +
        ", shareSize=" + shareSize +
        ", sharePersion=" + sharePersion +
        ", sharePersionTel=" + sharePersionTel +
        ", shareState=" + shareState +
        "}";
    }
}
